package org.example.properties.jwt;


import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;


/**
 * 用户端用户生成jwt令牌相关配置
 */
@Component
@ConfigurationProperties(prefix = "com.jwt")

@Data
@NoArgsConstructor
@AllArgsConstructor
public class JwtProperties {
    //jwt秘钥
    private String userSecretKey;
    //jwt过期时间(单位:毫秒)
    private long userTtl;

}
